package com.leyou.auth.client;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient("auth-service")
public interface AuthClient {
    /**
     *
     * @param clientId //微服务id
     * @param secret //秘钥
     * @return 秘钥对象
     */
    @GetMapping("/client/key")
    String getSecretKey(@RequestParam("clientId") String clientId,
                        @RequestParam("secret") String secret);
}
